package com.ricky;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;

@EnableAutoConfiguration
public class SpringBootApplication02 {


    /**
     * 配置外部启动文件
     * 下面只罗列一种方式  其他的和上面修改apllication方式一样
     * @param args
     * @throws InterruptedException
     */
    public static void main(String[] args) throws InterruptedException {
        args=new String[3];
        args[0]="--spring.config.location=file:d:/work/ricky/config/";
        args[1]="--spring.config.name=ricky02";
        args[2]="--spring.profiles.default=bgt01";
        SpringApplication application = new SpringApplication(SpringBootApplication02.class);
        application.run(args);
    }
}